home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2005 Utilities
/
CHIP Utilities 2005.7z
/
CHIP Utilities 2005.iso
/
images
/
arachne.igz
/
arachne.img
/
BIN
/
MODBOOT.CAB
/
bin
/
run.bat
< prev
next >
Wrap
DOS Batch File
|
2005-01-16
|
1KB
|
26 lines
@if "%debug%"=="" echo off
if "%1"=="" goto _usage
set run_file=
if "%run_file%"=="" if exist %1 set run_file=%1
if "%run_file%"=="" if exist %1.%arcext% set run_file=%1.%arcext%
if "%run_file%"=="" if exist %srcdrv%\lib\%1 set run_file=%srcdrv%\lib\%1
if "%run_file%"=="" if exist %srcdrv%\lib\%1.%arcext% set run_file=%srcdrv%\lib\%1.%arcext%
if "%run_file%"=="" if exist %srcdrv%\level1\%1 set run_file=%srcdrv%\level1\%1
if "%run_file%"=="" if exist %srcdrv%\level1\%1.%arcext% set run_file=%srcdrv%\level1\%1.%arcext%
if "%run_file%"=="" if exist %srcdrv%\level2\%1 set run_file=%srcdrv%\level2\%1
if "%run_file%"=="" if exist %srcdrv%\level2\%1.%arcext% set run_file=%srcdrv%\level2\%1.%arcext%
if "%run_file%"=="" if exist %srcdrv%\level3\%1 set run_file=%srcdrv%\level3\%1
if "%run_file%"=="" if exist %srcdrv%\level3\%1.%arcext% set run_file=%srcdrv%\level3\%1.%arcext%
if not "%run_file%"=="" goto _unpack
echo RUN: "%1" not found in curdir, %srcdrv%\level[123] or %srcdrv%\lib
goto _end
:_usage
echo RUN: Missing first parameter (module name)
echo RUN: Listing available modules...
for %%i in (*.%arcext% %srcdrv%\lib\*.%arcext% %srcdrv%\level1\*.%arcext% %srcdrv%\level2\*.%arcext% %srcdrv%\level3\*.%arcext%) do echo %%i
goto _end
:_unpack
call unpack %run_file% -x %2 %3 %4 %5 %6 %7 %8 %9
:_end
set run_file=